Heading issues

Hi all,
In some modules that were imported to DOORS have a problem with the heading, instead of being a heading, it looks like a text. So I need to do a script or any other solution to correct this.
I tried with this code and works fine but I can not ignore the object heading number:

pragma runLim, 0

Module m = current Module
Object objMod
string conType, objText

 

for objMod in m do {
conType = objMod."HB_ContentType"
if(conType == "Req Heading"){
objText = richText(objMod."Object Text")
objMod."Object Heading" = richText(objText)
objMod."Object Text" = null
}
}

Thanks in advance for your support.

Incorrect:

Correct:

With code:

 


BrianAguilar - Wed Sep 19 17:16:06 EDT 2018

Re: Heading issues
Mike.Scharnow - Thu Sep 20 03:30:33 EDT 2018

answered at https://www.ibm.com/developerworks/community/forums/html/topic?id=f823a89d-f93c-4bd9-9113-8f4d75a9029e